import request from '@/utils/request'
/**
 *查询模板库
 */
export function queryTemplateBaseQuery(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/templatePool/templateBaseQuery',
    method: 'post',
    data
  })
}
/**
 *模板列表
 */
export function queryTemplagePool(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/templatePool/entqueryPage',
    method: 'post',
    data
  })
}
/**
 * 新增模板
 */
export function insertTemplatePool(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/templatePool/insert',
    method: 'post',
    data
  })
}

/**
 * 修改模板
 */
export function updatetTemplatePool(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/templatePool/update',
    method: 'post',
    data
  })
}

/**
 * 修改模板启动
 */
export function updateStatusTemplatePool(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/templatePool/updateStatus',
    method: 'post',
    data
  })
}

/**
 * 获取模板详情
 */
export function getTemplatePool(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/templatePool/get',
    method: 'post',
    data
  })
}
/**
 * 删除模板
 */
export function deleteByIdTemplatePool(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/templatePool/deleteById',
    method: 'post',
    data
  })
}

